﻿import request from '/@/utils/request';
enum Api {
  AddEquipGroup = '/api/equipGroup/add',
  DeleteEquipGroup = '/api/equipGroup/delete',
  UpdateEquipGroup = '/api/equipGroup/update',
  GetEquipGroupPage = '/api/equipGroup/page',
}

// 增加设备分组
export const addEquipGroup = (params?: any) =>
	request({
		url: Api.AddEquipGroup,
		method: 'post',
		data: params,
	});

// 删除设备分组
export const deleteEquipGroup = (params?: any) => 
	request({
			url: Api.DeleteEquipGroup,
			method: 'post',
			data: params,
		});

// 编辑设备分组
export const updateEquipGroup = (params?: any) => 
	request({
			url: Api.UpdateEquipGroup,
			method: 'post',
			data: params,
		});

// 分页查询设备分组
export const getEquipGroupPageList = (params?: any) => 
	request({
			url: Api.GetEquipGroupPage,
			method: 'get',
			data: params,
		});


